const AppNavigationMixin = {
  data() {
    return {};
  },
  computed: {
    navigationItems_common() {
      return [
        {
          id: 'overview',
          label: this.$t('appNavigation.overview'),
          route: '/'
        },
        {
          id: 'hardware-info',
          label: this.$t('appNavigation.info'),
          children: [
            {
              id: 'system-info',
              label: this.$t('appNavigation.sysInfos'),
              route: '/hardware-info/system-info',
              icon: 'icon-a-filetext-line'
            },
            {
              id: 'fru-info',
              label: this.$t('appNavigation.fru_information'),
              route: '/hardware-info/fru-info',
              icon: 'icon-a-focuson-line'
            },
            {
              id: 'storage',
              label: this.$t('appNavigation.store'),
              route: '/hardware-info/storage',
              icon: 'icon-a-serverinterconnection-line'
            },
            {
              id: 'sensors',
              label: this.$t('appNavigation.sensors'),
              route: '/hardware-info/sensors',
              icon: 'icon-a-router3-line'
            },
            {
              id: 'history',
              label: this.$t('appNavigation.history'),
              route: '/hardware-info/history',
              icon: 'icon-lishiquxian-line'
            },
            {
              id: 'power-control',
              label: this.$t('appNavigation.power_control'),
              route: '/hardware-info/power-control',
              icon: 'icon-a-powersupply-line'
            },
            {
              id: 'fan-control',
              label: this.$t('appNavigation.fanCtr'),
              route: '/hardware-info/fan-control',
              icon: 'icon-fan-line'
            },
            {
              id: 'bios-setting',
              label: this.$t('appNavigation.boot_options'),
              route: '/hardware-info/bios-setting',
              icon: 'icon-biosset-line'
            },
            {
              id: 'system-software-info',
              label: this.$t('appNavigation.system_software_info'),
              route: '/hardware-info/system-software-info',
              icon: 'icon-kvm-line'
            }
          ]
        },
        {
          id: 'log-diagnose',
          label: this.$t('appNavigation.diagnose'),
          children: [
            {
              id: 'okclog',
              label: this.$t('appNavigation.okclog'),
              route: '/log-diagnose/ok-log',
              icon: 'icon-inbox-archive-line'
            },
            {
              id: 'alarm-log',
              label: this.$t('appNavigation.current_alarms'),
              route: '/log-diagnose/alarm-log',
              icon: 'icon-table-condition'
            },
            {
              id: 'idl-log',
              label: this.$t('appNavigation.idl_log'),
              route: '/log-diagnose/idl-log',
              icon: 'icon-transcript-line'
            },
            {
              id: 'sel-log',
              label: this.$t('appNavigation.system_event_log'),
              route: '/log-diagnose/sel-log',
              icon: 'icon-a-webpagecode-line'
            },
            {
              id: 'audit-log',
              label: this.$t('appNavigation.auditlog'),
              route: '/log-diagnose/audit-log',
              icon: 'icon-auditlog-line'
            },
            {
              id: 'alarm-set',
              label: this.$t('appNavigation.alarm_set'),
              route: '/log-diagnose/log-set',
              icon: 'icon-alarmset-line'
            },
            {
              id: 'post-code',
              label: this.$t('appNavigation.hostpostcode'),
              route: '/log-diagnose/post-code',
              icon: 'icon-a-filesearch-line'
            },
            {
              id: 'capture-screen',
              label: this.$t('appNavigation.capture_screen'),
              route: '/log-diagnose/capture-screen',
              icon: 'icon-crop-2-line'
            },
            {
              id: 'video-log',
              label: this.$t('appNavigation.video_log'),
              route: '/log-diagnose/video-log',
              icon: 'icon-vidicon-2-line'
            },
            {
              id: 'restart',
              label: this.$t('appNavigation.restart_function'),
              route: '/log-diagnose/restart',
              icon: 'icon-restart-line'
            }
          ]
        },
        {
          id: 'service',
          label: this.$t('appNavigation.service'),
          children: [
            {
              id: 'kvm',
              label: this.$t('appNavigation.console_redirection'),
              route: '/service/kvm',
              icon: 'icon-a-computercontrol-line'
            },
            {
              id: 'serial-over-lan',
              label: this.$t('appNavigation.serialOverLan'),
              route: '/service/serial-over-lan',
              icon: 'icon-SOL-line'
            },
            {
              id: 'virtual-media',
              label: this.$t('appNavigation.virtualMedia'),
              route: '/service/virtual-media',
              icon: 'icon-virtualmedia-line'
            },
            {
              id: 'image-redirection',
              label: this.$t('appNavigation.image_redirection'),
              route: '/service/image-redirection',
              icon: 'icon-merge-cells-line'
            },
            {
              id: 'snmp-configuration',
              label: this.$t('appNavigation.snmp_config'),
              route: '/service/snmp-configuration',
              icon: 'icon-snmp-line'
            }
          ]
        },
        {
          id: 'user-security',
          label: this.$t('appNavigation.user-security'),
          children: [
            {
              id: 'user-configuration',
              label: this.$t('appNavigation.user_detail_config'),
              route: '/user-security/user-configuration',
              icon: 'icon-contacts-line'
            },
            {
              id: 'system-firewall',
              label: this.$t('appNavigation.system_firewall'),
              route: '/user-security/system-firewall',
              icon: 'icon-shield-line'
            },
            {
              id: 'external-userservice',
              label: this.$t('appNavigation.external_userservice'),
              route: '/user-security/external-userservice',
              icon: 'icon-a-regulationcross-line'
            },
            {
              id: 'double-factor',
              label: this.$t('appNavigation.double_factor'),
              route: '/user-security/double-factor',
              icon: 'icon-authentication-line'
            },
            {
              id: 'system-lock',
              label: this.$t('appNavigation.system_lock'),
              route: '/user-security/system-lock',
              icon: 'icon-lock-line'
            },
            {
              id: 'leakage-action',
              label: this.$t('appNavigation.leakage_action'),
              route: '/user-security/leakage-action',
              icon: 'icon-lock-line'
            },
            {
              id: 'metrics-ctl',
              label: this.$t('appNavigation.security_metrics'),
              route: '/user-security/metrics-ctl',
              icon: 'icon-shield-line'
            },
            {
              id: 'certificate',
              label: this.$t('appNavigation.certificate_fips'),
              route: '/user-security/certificate',
              icon: 'icon-ssl-line'
            } //,
            // {
            //   id: 'license-cert',
            //   label: this.$t('appNavigation.license_cert'),
            //   route: '/user-security/license-cert',
            //   icon: 'icon-ssl-line'
            // }
          ]
        },
        {
          id: 'bmc-settings',
          label: this.$t('appNavigation.bmc_settings'),
          children: [
            {
              id: 'network',
              label: this.$t('appNavigation.network'),
              route: '/bmc-settings/network',
              icon: 'icon-a-mesh4-line'
            },
            {
              id: 'datetime',
              label: this.$t('appNavigation.datetime'),
              route: '/bmc-settings/datetime',
              icon: 'icon-calendar-line'
            },
            {
              id: 'services',
              label: this.$t('appNavigation.services'),
              route: '/bmc-settings/ports',
              icon: 'icon-duankou-line'
            },
            {
              id: 'config-upgrade',
              label: this.$t('appNavigation.config_upgrade'),
              route: '/bmc-settings/config-upgrade',
              icon: 'icon-filesync-line'
            },
            {
              id: 'language-configuration',
              label: this.$t('appNavigation.language_configuration'),
              route: '/bmc-settings/language-configuration',
              icon: 'icon-language-line'
            },
            {
              id: 'hpm_firmware_update',
              label: this.$t('appNavigation.firmware_update'),
              route: '/bmc-settings/hpm-firmware-update',
              icon: 'icon-firmwareupdate-line'
            },
            {
              id: 'restore-defaults',
              label: this.$t('appNavigation.restore_defaults'),
              route: '/bmc-settings/restore-defaults',
              icon: 'icon-interation-line'
            },
            {
              id: 'upload-logo',
              label: this.$t('appNavigation.upload_logo'),
              route: '/bmc-settings/upload-logo',
              icon: 'icon-upload-line'
            } //,
            // {
            //   id: 'memory-health',
            //   label: this.$t('appNavigation.memory_health'),
            //   route: '/bmc-settings/memory-health',
            //   icon: 'icon-a-securitytrend-line'
            // }
          ]
        }
      ];
    }
  }
};

export default AppNavigationMixin;
